import { MockMethod } from 'vite-plugin-mock';
export default [
  // 登录请求
  {
    url: '/haichuan/api/sso/verify',
    method: 'get',
    response: () => {
      return {
        code: 0,
        msg: '请求成功',
        data: {
          email: '123456789@qq.com',
          name: '知音楼',
          workcode: 123,
          teacher_id: 1
        }
      };
    }
  },
  // 退出登录
  {
    url: '/haichuan/api/logout',
    method: 'get',
    response: () => {
      return {
        code: 0,
        msg: '请求成功',
        data: []
      };
    }
  },
  // 获取权限
  {
    url: '/haichuan/api/getUserMenuPerm',
    method: 'get',
    response: () => {
      return {
        code: 0,
        data: [
          {
            url: '/myClass',
            lid: 'fdasf0001',
            plid: '0',
            menu_name: '我的班级',
            type: 1,
            child_menu: [
              {
                url: '',
                lid: 'a12c',
                plid: 'fdasf0001',
                type: 3,
                class_type: 1,
                menu_name: '班级学员',
                menu_info: {
                  detail_column: [
                    {
                      dim_id: 3,
                      column_info: [
                        {
                          field_id: '10003002000068',
                          field_name: 'name',
                          field_title: '姓名'
                        }
                      ]
                    }
                  ],
                  statistics_column: [
                    {
                      dim_id: 4,
                      column_info: [
                        {
                          field_id: '10003002000067',
                          field_name: 'name',
                          field_title: '姓名'
                        }
                      ]
                    }
                  ],
                  single_tool: [
                    {
                      name: '编辑',
                      action: 'update'
                    }
                  ],
                  batch_tool: [
                    {
                      name: '导出表格',
                      action: 'export'
                    }
                  ]
                }
              },
              {
                url: '',
                lid: '3e4r',
                plid: 'fdasf0001',
                type: 3,
                class_type: 2,
                menu_name: '讲次表现',
                menu_info: {
                  detail_column: [
                    {
                      dim_id: 3,
                      column_info: [
                        {
                          field_id: '10003002000069',
                          field_name: 'name',
                          field_title: '姓名'
                        }
                      ]
                    }
                  ],
                  statistics_column: [
                    {
                      dim_id: 4,
                      column_info: [
                        {
                          field_id: '10003002000080',
                          field_name: 'name',
                          field_title: '姓名'
                        }
                      ]
                    }
                  ],
                  single_tool: [
                    {
                      name: '编辑',
                      action: 'update'
                    }
                  ],
                  batch_tool: [
                    {
                      name: '导出表格',
                      action: 'export'
                    }
                  ]
                }
              },
              {
                url: '',
                lid: '3e4r',
                plid: 'fdasf0001',
                type: 3,
                class_type: 2,
                menu_name: '班级日志',
                menu_info: {
                  detail_column: [
                    {
                      dim_id: 3,
                      column_info: [
                        {
                          field_id: '10003002000069',
                          field_name: 'name',
                          field_title: '姓名'
                        }
                      ]
                    }
                  ],
                  statistics_column: [
                    {
                      dim_id: 4,
                      column_info: [
                        {
                          field_id: '10003002000080',
                          field_name: 'name',
                          field_title: '姓名'
                        }
                      ]
                    }
                  ],
                  single_tool: [
                    {
                      name: '编辑',
                      action: 'update'
                    }
                  ],
                  batch_tool: [
                    {
                      name: '导出表格',
                      action: 'export'
                    }
                  ]
                }
              }
            ]
          },
          {
            url: '/myStudent',
            lid: '1',
            plid: '0',
            type: 1,
            menu_name: '我的学员',
            child_menu: []
          },
          {
            url: '/mySea',
            lid: '3',
            plid: '0',
            type: 1,
            menu_name: '我的私海',
            child_menu: []
          },
          {
            url: '/tools',
            lid: '6',
            plid: '0',
            type: 1,
            menu_name: '常用工具',
            child_menu: [
              {
                url: '/myClass1',
                lid: '1',
                plid: '1',
                type: 2,
                menu_name: '导出工具',
                child_menu: [
                  {
                    url: 'class_stu',
                    lid: 'a12c',
                    plid: 'fdasf0001',
                    type: 3,
                    class_type: 1,
                    menu_name: '班级学员',
                    menu_info: {
                      detail_column: [
                        {
                          dim_id: 3,
                          column_info: [
                            {
                              field_id: '10003002000068',
                              field_name: 'name',
                              field_title: '姓名'
                            }
                          ]
                        }
                      ],
                      statistics_column: [
                        {
                          dim_id: 4,
                          column_info: [
                            {
                              field_id: '10003002000067',
                              field_name: 'name',
                              field_title: '姓名'
                            }
                          ]
                        }
                      ],
                      single_tool: [
                        {
                          name: '编辑',
                          action: 'update'
                        }
                      ],
                      batch_tool: [
                        {
                          name: '导出表格',
                          action: 'export'
                        }
                      ]
                    }
                  },
                  {
                    url: 'class_stu',
                    lid: '3e4r',
                    plid: 'fdasf0001',
                    type: 3,
                    class_type: 2,
                    menu_name: '讲次表现',
                    menu_info: {
                      detail_column: [
                        {
                          dim_id: 3,
                          column_info: [
                            {
                              field_id: '10003002000069',
                              field_name: 'name',
                              field_title: '姓名'
                            }
                          ]
                        }
                      ],
                      statistics_column: [
                        {
                          dim_id: 4,
                          column_info: [
                            {
                              field_id: '10003002000080',
                              field_name: 'name',
                              field_title: '姓名'
                            }
                          ]
                        }
                      ],
                      single_tool: [
                        {
                          name: '编辑',
                          action: 'update'
                        }
                      ],
                      batch_tool: [
                        {
                          name: '导出表格',
                          action: 'export'
                        }
                      ]
                    }
                  },
                  {
                    url: 'class_stu',
                    lid: '3e4r',
                    plid: 'fdasf0001',
                    type: 3,
                    class_type: 2,
                    menu_name: '班级日志',
                    menu_info: {
                      detail_column: [
                        {
                          dim_id: 3,
                          column_info: [
                            {
                              field_id: '10003002000069',
                              field_name: 'name',
                              field_title: '姓名'
                            }
                          ]
                        }
                      ],
                      statistics_column: [
                        {
                          dim_id: 4,
                          column_info: [
                            {
                              field_id: '10003002000080',
                              field_name: 'name',
                              field_title: '姓名'
                            }
                          ]
                        }
                      ],
                      single_tool: [
                        {
                          name: '编辑',
                          action: 'update'
                        }
                      ],
                      batch_tool: [
                        {
                          name: '导出表格',
                          action: 'export'
                        }
                      ]
                    }
                  }
                ]
              },
              {
                url: '/myClass2',
                lid: '1',
                plid: '1',
                type: 2,
                menu_name: '批量工具',
                child_menu: [],
                menu_info: {
                  detail_column: [
                    {
                      dim_id: 3,
                      column_info: [
                        {
                          field_id: '10003002000069',
                          field_name: 'name',
                          field_title: '姓名'
                        }
                      ]
                    }
                  ],
                  statistics_column: [
                    {
                      dim_id: 4,
                      column_info: [
                        {
                          field_id: '10003002000080',
                          field_name: 'name',
                          field_title: '姓名'
                        }
                      ]
                    }
                  ],
                  single_tool: [
                    {
                      name: '编辑',
                      action: 'update'
                    }
                  ],
                  batch_tool: [
                    {
                      name: '导出表格',
                      action: 'export'
                    }
                  ]
                }
              }
            ]
          }
        ],
        msg: 'success',
        trace_id: '509b690f-b8c5-4c93-9120-917f6dfa5aa4'
      };
    }
  }
] as MockMethod[];
